﻿<div class="header">
    <div class="header_box">
        <ul>
            <li class="header_box_left">您好，欢迎来星汇！
                @if (!Request.IsAuthenticated)
                {
                    <text> <a href="/Account/LogOn">
                        <img align="absMiddle" src="@Url.Content("~/Content/images/user.gif")" />&nbsp;@Html.ActionLink("请登录", "LogOn", "Account", null, null)</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp; <a href="/Account/Register">
                        <img align="absMiddle" src="@Url.Content("~/Content/images/key.gif")" />&nbsp;@Html.ActionLink("免费注册", "Register", "Account", null, null)</a>
                    </text>
                }
                else
                {
                    <text><img align="absMiddle" src="@Url.Content("~/Content/images/user.gif")" />@User.Identity.Name
                    &nbsp;&nbsp
                    <img align="absMiddle" src="@Url.Content("~/Content/images/key.gif")" />@Html.ActionLink("安全退出", "LogOff", "Account", null, new { @sytle = "color:red" })</text> 
                  
                }
            </li>
            <li class="header_box_right">
              @Html.ActionLink("星汇首页", "Index", "Home", null, null)
              <a class="header_tag_link">&nbsp;</a>@Html.ActionLink("我要买", "Index", "Home", null, null)
              <a class="header_tag_link">&nbsp;</a>@Html.ActionLink("我的星汇", "Index", "Users", null, null)
              <a class="header_tag_link">&nbsp;</a>@Html.ActionLink("购物车", "Cart", "Users", null, null)
              <a class="header_tag_link">&nbsp;</a>@Html.ActionLink("收藏夹", "Favorite", "Users", null, null)
            </li>
        </ul>
    </div>
</div>
<div class="tagDiv">
</div>
